package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 金蝶-其他入库单物料明细对象 erp_king_other_inbound_material_info
 *
 * @author cxl
 * @date 2024-08-03
 */
@TableName ("erp_king_other_inbound_material_info")
@ApiModel (value = "其他入库单物料明细", description = "金蝶-其他入库单物料明细")
@Data
public class KingOtherInboundMaterialEntity{

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 其他入库单主表id */
    @ApiModelProperty ("其他入库单主表id")
    @TableField ("other_inbound_id")
    @Excel (name = "其他入库单主表id")
    private String otherInboundId;

    /** 物料id */
    @ApiModelProperty ("物料id")
    @TableField ("material_id")
    @Excel (name = "物料id")
    private String materialId;

    /** 物料编码 */
    @ApiModelProperty ("物料编码")
    @TableField ("material_code")
    @Excel (name = "物料编码")
    private String materialCode;

    /** 物料名称 */
    @ApiModelProperty ("物料名称")
    @TableField ("material_name")
    @Excel (name = "物料名称")
    private String materialName;

    /** 规格型号 */
    @ApiModelProperty ("规格型号")
    @TableField ("material_model")
    @Excel (name = "规格型号")
    private String materialModel;

    /** 单位 */
    @ApiModelProperty ("单位")
    @TableField ("unit")
    @Excel (name = "单位")
    private String unit;

    /** 收货仓库id */
    @ApiModelProperty ("收货仓库id")
    @TableField ("receive_warehouse_id")
    @Excel (name = "收货仓库id")
    private String receiveWarehouseId;

    /** 收货仓库编码 */
    @ApiModelProperty ("收货仓库编码")
    @TableField ("receive_warehouse_code")
    @Excel (name = "收货仓库编码")
    private String receiveWarehouseCode;

    /** 仓位 */
    @ApiModelProperty ("仓位")
    @TableField ("warehouse_position")
    @Excel (name = "仓位")
    private String warehousePosition;

    /** 批号 */
    @ApiModelProperty ("批号")
    @TableField ("batch_num")
    @Excel (name = "批号")
    private String batchNum;

    /** 实收数量 */
    @ApiModelProperty ("实收数量")
    @TableField ("receipts_num")
    @Excel (name = "实收数量")
    private String receiptsNum;

    /** 货主 */
    @ApiModelProperty ("货主")
    @TableField ("cargo_owner")
    @Excel (name = "货主")
    private String cargoOwner;

    /** 录入人 */
    @ApiModelProperty ("录入人")
    @TableField ("user_id")
    @Excel (name = "录入人")
    private String userId;

    /** 更新时间 */
    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    /** 逻辑删除 */
    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    @TableLogic
    private Integer isUsed;

    /** 行号 */
    @ApiModelProperty ("行号")
    @TableField ("line_number")
    @Excel (name = "行号")
    private String lineNumber;

    /** 备注 */
    @ApiModelProperty ("备注")
    @TableField ("remark")
    @Excel (name = "备注")
    private String remark;

    /** 创建时间 */
    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("物料明细分录信息")
    @TableField(exist = false)
    private KingOtherInboundMaterialDetailEntity materialDetail;




    @ApiModelProperty("单位名称")
    @TableField(exist = false)
    private String unitName;

    @ApiModelProperty("收货仓库名称")
    @TableField(exist = false)
    private String receiveWarehouseName;

}
